loadAd

fun loadAd(adRequest: AdRequest, listener: SliderAdLoadListener)

Start loading the slider ad on a background thread.

Parameters

adRequest

an AdRequest object contains targeting information used to fetch a slider ad.

listener

SliderAdLoadListener to be invoked when the ad is loaded or loading fails.


suspend fun loadAd(adRequest: AdRequest): SliderAdLoadResult

Start loading the slider ad on a background thread.

Return

SliderAdLoadResult.Success with SliderAd or SliderAdLoadResult.Failure with com.yandex.mobile.ads.common.AdRequestError.

Parameters

adRequest

an AdRequest object contains targeting information used to fetch a slider ad.


fun loadAd(adRequest: AdRequest, options: NativeAdOptions, listener: SliderAdLoadListener)

Start loading the slider ad on a background thread.

Parameters

adRequest

an AdRequest object contains targeting information used to fetch a slider ad.

options

Configuration options for native ad loading. Default options load images automatically.

listener

SliderAdLoadListener to be invoked when the ad is loaded or loading fails.


suspend fun loadAd(adRequest: AdRequest, options: NativeAdOptions): SliderAdLoadResult

Start loading the slider ad on a background thread.

Return

SliderAdLoadResult.Success with SliderAd or SliderAdLoadResult.Failure with com.yandex.mobile.ads.common.AdRequestError.

Parameters

adRequest

an AdRequest object contains targeting information used to fetch a slider ad.

options

Configuration options for native ad loading. Default options load images automatically.